<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
<html>
<head>
    <title>修改页面</title>
</head>
<body>
<div>
    <form method="post" action="${pageContext.request.contextPath}/user/update">
        <table border="1">
            <tr>
                <td>
                    <input type="hidden" name="id" value="${sysUser.id}">
                </td>
            </tr>
            <tr>
                <th>用户编号:</th>
                <td><input type="text" name="account" value="${sysUser.account}"></td>
            </tr>
            <tr>
                <th>账号:</th>
                <td><input type="text" name="realName" value="${sysUser.realName}"></td>
            </tr>
            <tr>
                <th>性别:</th>
                <td><input type="text" name="sex" value="${sysUser.sex}"></td>
            </tr>
            <tr>
                <th>出生日期:</th>
                <td><input type="date" name="birthday" value="<fmt:formatDate value="${sysUser.birthday}"/>"></td>
            </tr>
            <tr>
                <th>手机号码:</th>
                <td><input type="text" name="phone" value="${sysUser.phone}"></td>
            </tr>
            <tr>
                <th>地址:</th>
                <td><input type="text" name="address" value="${sysUser.address}"></td>
            </tr>
            <tr>
                <th>角色:</th>
                <td>
                    <select name="roleId">
                        <option value="1">系统管理员</option>
                        <option value="2">店长</option>
                        <option value="3">店员</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td style="float: right">
                    <button type="submit" style="background-color: #6aa7d6">保存</button>
                </td>
            </tr>
        </table>
    </form>
</div>
<%@include file="/WEB-INF/jsp/common/foot.jsp" %>
